package com.czollmann.android.activities;

import android.content.SharedPreferences;
import android.os.Bundle;

import com.czollmann.android.Constants;
import com.czollmann.android.R;
import com.czollmann.android.utils.DataUtils;
import com.czollmann.android.utils.DateObjectWrapperUtils;

public class HomeActivity extends BaseActivity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.home);
		final SharedPreferences settings = getSharedPreferences(
				Constants.SETTINGS_NAME, 0);
		if (DateObjectWrapperUtils.getDateObjectWrappers() == null
				|| DateObjectWrapperUtils.getDateObjectWrappers().size() == 0) {
			DataUtils.initializeData(getContentResolver(), settings);
		}
	}
}
